package com.qf.collection.generic;

import com.qf.collection.Cat;
import com.qf.collection.Dog;

public class PrinterDemo {
    public static void main(String[] args) {

//        Printer<Cat> catPrinter = new Printer<>();
//        catPrinter.setT(new Cat("加菲猫",2));
//        catPrinter.print();
//
//        Printer<Dog> dogPrinter = new Printer<>();
//        dogPrinter.setT(new Dog("沙漠死神",3));
////        dogPrinter.setT(new Cat("波斯猫",1));
//        dogPrinter.print();
//
//        Printer02<Cat, Dog> catDogPrinter02 = new Printer02<>();
//        catDogPrinter02.setT(new Cat("加菲猫",2));
//        catDogPrinter02.setK(new Dog("沙漠死神",3));
//        catDogPrinter02.printT();
//        catDogPrinter02.printK();

        Printer02.printInfo(new Cat());


    }
}
